Device Control System, Device, and Computer-Readable Non-Transitory Storage Medium

ABSTRACT

Provided is a device control system including: a device, which has a device ID for identifying the device, and is configured to write a user ID for identifying a user in a memory based on an instruction to register the user ID; and a server configured to transmit a message containing the user ID and a command to the device having the device ID. The device is configured to: receive the message, and compare the user ID contained in the message and the written user ID; and determine whether the command contained in the message is executable in accordance with a result of the comparison.

CROSS-REFERENCE TO RELATED APPLICATION

The present application claims priority from Japanese application JP 2017-231630 filed on Dec. 1, 2017, the content of which is hereby incorporated by reference into this application.

BACKGROUND OF THE INVENTION 1. Field of the Invention

The present invention relates to a device control system, a device, a program, and a device control method.

2. Description of the Related Art

A function of connecting to a network and the like is actively added to home electrical appliances, audio devices, and the like, which are different from general-purpose computer devices, to thereby remotely control those devices.

In Japanese Patent Application Laid-open No. 2004-15627, there is disclosed a system for remotely controlling audio/visual (AV) devices through a network.

SUMMARY OF THE INVENTION

After some user hands over a device to another user, when a server and the like configured to command the device are not appropriately set, there is a possibility of an unexpected operation of the device due to a remote operation by the user who has handed over the device.

The present invention has been made in view of the above-mentioned problem, and has an object to provide a technology capable of suppressing a possibility of an unexpected operation of a device after the device is handed over, for example.

In order to solve the above-mentioned problem, according to one embodiment of the present invention, there is provided a device control system including: a device, which has a device ID for identifying the device, and is configured to write a user ID for identifying a user in a memory based on an instruction to register the user ID; and a server configured to transmit a message containing the user ID and a command to the device having the device ID. The device is configured to: receive the message, and compare the user ID contained in the message and the written user ID; and determine whether the command contained in the message is executable in accordance with a result of the comparison.

Further, according to one embodiment of the present invention, there is provided a device, which has a device ID for identifying the device, and is configured to: write a user ID for identifying a user in a memory based on an instruction to register the user ID; receive a message containing the user ID and a command, and compare the user ID contained in the message and the written user ID; and determine whether the command contained in the message is executable in accordance with a result of the comparison.

Further, according to one embodiment of the present invention, there is provided a computer-readable non-transitory storage medium for storing a program that causes a device which has a device ID for identifying the device to execute processing of: writing a user ID for identifying a user in a memory based on an instruction to register the user ID; and receiving a message containing the user ID and a command, comparing the user ID contained in the message and the written user ID, and determining whether the command contained in the message is executable in accordance with a result of the comparison.

Further, according to one embodiment of the present invention, there is provided a device control method for a system including a device having a device ID for identifying the device and a server, the device control method including: writing, by the device, a user ID for identifying a user in a memory based on an instruction to register the user ID; transmitting, by the server, a message containing the user ID and a command to the device having the device ID; receiving, by the device, the message, and comparing the user ID contained in the message and the written user ID; and determining, by the device, whether the command contained in the message is executable in accordance with a result of the comparison.

According to the embodiments of the present invention, the possibility of an unexpected operation of the device after the device is handed over, for example, can be suppressed.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram for illustrating a configuration of a device control system according to an embodiment of the present invention.

FIG. 2 is a diagram for illustrating an example of device tables.

FIG. 3 is a block diagram for illustrating functions implemented by a speech recognition device, a command data transmission device, a device, and a user terminal.

FIG. 4 is a diagram for illustrating an example of a message.

FIG. 5 is a flowchart for illustrating an example of processing of use registration for speech input.

FIG. 6 is a table for showing an example of a speech input use table.

FIG. 7 is a sequence diagram for illustrating processing of device registration.

FIG. 8 is a flowchart for illustrating an example of processing by the user terminal in the device registration.

FIG. 9 is a flowchart for illustrating an example of processing by the user terminal in the device registration.

FIG. 10 is a flowchart for illustrating an example of processing by the command data transmission device in the device registration.

FIG. 11 is a diagram for illustrating an example of templates of sample phrases.

FIG. 12 is a flowchart for illustrating an example of processing by a phrase generation module and a phrase output module.

FIG. 13 is a diagram for illustrating an example of displayed sample phrases.

FIG. 14 is a diagram for illustrating another example of the displayed sample phrases.

FIG. 15 is a flowchart for illustrating an example of processing by an operation instruction reception module, a message generation module, a message transmission module, a message reception module, and a command execution module.

DETAILED DESCRIPTION OF THE INVENTION

A description is now given of an example of an embodiment of the present invention with reference to the drawings.

[1. System Configuration] FIG. 1 is a diagram for illustrating a configuration of a device control system according to the embodiment of the present invention. As illustrated in FIG. 1, the device control system. 1 includes a first device 20-1, a second device 20-2, a third device 20-3, a speech input device 30, a speech recognition device 40, and a command processing system 50. The first device 20-1, the second device 20-2, and the third device 20-3 are hereinafter sometimes generally referred to as “device 20”

The devices 20 and the speech input device 30 are installed in a local area, and are connected to a LAN 2. The LAN 2 may be a wired LAN or a wireless LAN. The LAN 2 is connected to an Internet 6 through a router 4. The speech recognition device 40 and the command processing system 50 are installed outside the local area. In other words, the speech recognition device 40 and the command processing system 50 are installed on the Internet 6 side as viewed from the devices 20 and the speech input device 30. The “local area” is an area having a limited range in which communication through the LAN 2 is available.

The devices 20 are devices to be controlled by the device control system 1. Although the three devices 20 are illustrated in FIG. 1, four or more devices 20 may be included, or only two or less devices 20 may be included.

For example, the device 20 is an audio device or an audio/visual (AV) device. Specifically, the device 20 is an AV receiver, an AV amplifier, a speaker, an optical disc player (Blu-ray disc (trademark) player, a DVD (trademark) player, or the like), or a television receiver. Moreover, for example, the device 20 may be a musical instrument (an electronic musical instrument, an electric musical instrument, or the like). The device 20 may be a device other than those devices.

In the following, an example in which the first device 20-1 is an AV receiver, the second device 20-2 is a television receiver, and the third device 20-3 is a Blu-ray disc player is assumed. The second device 20-2 is connected to a first high-definition multimedia interface (HDMI) (trademark) terminal (HDMI 1) of the first device 20-1 through an HDMI cable. The third device 20-3 is connected to a second HDMI terminal (HDMI 2) of the first device 20-1 through an HDMI cable. Moreover, private IP addresses “192.168.0.2”, “192.168.0.3”, and “192.168.0.4” are set to the first device 20-1, the second device 20-2, and the third device 20-3, respectively.

As illustrated in FIG. 1, the first device 20-1 includes a controller 21, a storage 22, and a communication unit 23. The controller 21 includes at least one microprocessor (CPU), and is configured to carry out processing in accordance with programs stored in the storage 22. The storage 22 includes a main storage (e.g., RAM) and an auxiliary storage (e.g., a nonvolatile semiconductor memory or a hard disk drive). The storage 22 is configured to store programs and data. The communication unit 23 is configured to transmit data to other devices and receive from other devices. The second device 20-2 and the third device 20-3 also include the controller 21, the storage 22, and the communication unit 23, which are not shown in FIG. 1.

The device 20 may include a component (e.g., an optical disc drive or a memory card slot) configured to read programs and data stored in an information storage medium (e.g., an optical disc or a memory card). Further, the programs may be supplied to the devices 20 through the information storage medium. The programs may be supplied to the devices 20 through the Internet 6.

The speech input device 30 includes a microphone so as to receive speech input. In this embodiment, the speech input device 30 is used by a user for the speech input of an operation instruction to the devices 20. For example, when the user wants to start up the device 20 installed in a living room from a standby state through the command processing system 50 supplied from a company X, the user inputs “AAA, ask MC to turn on the Living Room” or the like to the speech input device 30. In this case, “AAA” is a word (wake word) for starting the speech input to the speech input device 30, and is, for example, a name of the speech input device 30. “MC” is a name of the command processing system 50.

The speech data indicating the speech (phrase) input to the speech input device 30 is transmitted together with a user ID to the speech recognition device 40 through the Internet 6. The speech recognition device 40 is implemented by, for example, a server computer. The speech recognition device 40 may be implemented by a plurality of servers through so-called cloud computing. The speech recognition device 40 is configured to carry out speech recognition processing, to thereby convert the speech data to data in a form easily recognized by a program (command processing system 50). For example, the speech recognition device 40 generates an operation instruction in a predetermined form, which contains character strings indicating a type of instruction by the user and a subject to the instruction, from the speech data on the phrase. Then, the operation instruction is transmitted together with the user ID to the command processing system 50. The user ID may be added by any device (processing) on the Internet side before the speech data is transmitted to the command processing system 50.

Under this state, the speech recognition device 40 is capable of transmitting the operation instruction to a command processing system 50 in accordance with the content of the phrase, for example, a specific word group in the phrase. The command processing system 50 is capable of processing content of the phrase transmitted from the user. The user registers the command processing systems 50 to be used in the speech recognition device 40 in advance. The speech recognition device 40 selects any one of the registered command processing systems 50 based on words contained in the phrase input from the user, and transmits the operation instruction to the selected command processing system 50. Moreover, the speech recognition device 40 may receive a plurality of types of phrases corresponding to a specific device 20, and control the device 20 through the command data transmission device 10 corresponding to each of the types of phrases. For example, a format of wording of the instruction in a phrase differs in accordance with the type of the phrase.

For example, in a first type of phrase, a phrase for starting up the device 20 having a name “Living Room” is “AAA, ask MC to turn on the Living Room”. In a second type, a phrase for starting up the device 20 is “AAA, turn on the Living Room”. While the phrase in the first type contains “MC”, which is a name for identifying the command processing system 50, the phrase in the second type does not contain the name. Whether the speech recognition device 40 receives the first type of phrase to transmit an operation instruction, or receives the second type of phrase to transmit an operation instruction is set by the user. Detailed description is later made of this setting. The command processing system 50, which is the transmission destination when the speech recognition device 40 receives the first type of phrase, may be different from that of the second type.

The user terminal 60 is configured to receive a physical operation, for example, a touch operation by the user, to thereby control the device 20. Moreover, the user terminal 60 is configured to set the command processing system 50 and the speech recognition device 40 based on an operation by the user. The user terminal 60 is, for example, a smartphone or a personal computer. The user terminal 60 includes a controller 61, a storage 62, and a communication unit 63. The controller 61, the storage 62, and the communication unit 63 are the same as the controller 21, the storage 22, and the communication unit 23, respectively.

As illustrated in FIG. 1, the command processing system 50 includes the command data transmission device 10, a database 52, and a message queueing telemetry transport (MQTT) server 53.

The database 52 stores various types of data. For example, the database 52 stores information on devices 20 owned by respective users. FIG. 2 is a diagram for illustrating an example of device tables stored in the database 52. A device table T1 is stored for each of the users (while associated with the user ID). The user ID used in the command processing system 50 (database 52), the user terminal 60, and the devices 20 may be different from or the same as the user ID used in the speech input device 30 and the speech recognition device 40. When those user IDs are different from each other, correspondence data for converting those user IDs to each other is stored in the command processing system 50 or the speech recognition device 40.

As shown in FIG. 2, the device table T1 includes fields of “ID”, “name”, “device ID”, “IP address”, “command type”, “terminals”, “connection destination”, “reception availability”, and “acceptable commands”.

The “ID” field indicates information for uniquely identifying each device 20 owned by the user. In FIG. 2, the first device 20-1 corresponds to a device ID of “1”, and the second device 20-2 corresponds to a device ID of “2”.

The “name” field indicates a name of the device 20. This name is used by the user to specify the device 20 subject to the operation instruction. As the name, any name set by the user may be used, or, for example, an initial name set by a manufacturer of the device 20 or the like may be used, and may be modifable by the user.

The “device ID” field indicates a device ID for solely and uniquely identifying the device 20. The device ID may be a MAC address of the device 20, or an ID generated based on the MAC address. The “IP address” field indicates an IP address set to a wireless or wired network interface card provided for the device 20. The “command type” field is a type (scheme) of commands used in the device 20. The “terminals” field indicates a list of input terminals provided for the device 20. The “connection destination” field indicates an input terminal of another device 20 to which the device 20 is connected when the device 20 is connected to the another device 20 and the sound output from the device 20 is input to the another device 20.

The “reception availability” field indicates whether a message containing a command can be received through the Internet 6. Detailed description is later made of the message. For example, “0” or “1” is registered in the “reception availability” field. “0” indicates that a message cannot be received through the Internet 6. “1” indicates that a message can be received through the Internet 6.

The “acceptable commands” field indicates a list of commands that the device 20 can accept. When “Power” is set in the list of the “acceptable commands” field, the field indicates that the device can be started up from the standby state through an external command. When “Power” is not set in the list of the “acceptable commands” field, the field indicates that the device cannot be started up from the standby state. Moreover, when “Volume” is set in the list of the “acceptable commands” field, the field indicates that a volume of the device can be controlled through an external command. When “Volume” is not set in the list of the “acceptable commands” field, the field indicates that the volume cannot be controlled through an external command.

The data in the device table T1 is registered by each user. The user can register information on the device 20 owned by the user in the device table T1 through access from the user terminal 60 to the command data transmission device 10. Detailed description is later made of the registration.

Data other than the device tables T1 is stored in the database 52. For example, a user and data indicating types of phrases that can be input by the user for the device 20 associated with each other are stored in the database 52. Additionally, data indicating a correspondence between an operation instruction and a command (namely, data for converting the operation instruction to the command) may be stored in the database 52.

The command data transmission device 10 is implemented by, for example, a server computer. As illustrated in FIG. 1, the command data transmission device 10 includes a controller 11, a storage 12, and a communication unit 13. The controller 11, the storage 12, and the communication unit 13 are the same as the controller 21, the storage 22, and the communication unit 23, respectively. The command data transmission device 10 may include a component (e.g., an optical disc drive or a memory card slot) configured to read programs and data stored in an information storage medium (e.g., an optical disc or a memory card). Further, the programs may be supplied to the command data transmission device 10 through the information storage medium. The programs may be supplied to the command data transmission device 10 through the Internet 6.

The command data transmission device 10 can make access to the database 52. The command data transmission device 10 and the database 52 may be implemented by a single server computer, or may be respectively implemented by server computers which are different from each other.

The command data transmission device 10 is configured to receive an operation instruction, which is transmitted from the speech recognition device 40 and is directed to the device 20, generate a message containing a command based on the operation instruction, and transmit the message to the device 20. More specifically, the message is transmitted to the device 20 through the MQTT server 53. The MQTT server 53 is configured to transmit/receive data through use of the MQTT protocol. The command data transmission device 10 and the MQTT server 53 may be implemented by a single server computer, or may be respectively implemented by server computers which are different from each other.

[2. Functional Blocks] FIG. 3 is a block diagram for illustrating functions implemented by the command data transmission device 10, the devices 20, and the user terminal 60.

As illustrated in FIG. 3, the command data transmission device 10 includes an operation instruction reception module 110, a message generation module 120, a message transmission module 130, a device information acquisition module 140, a speech use registration module 150, a device registration module 160, and a registration result transmission module 170. The operation instruction reception module 110, the message generation module 120, the message transmission module 130, the device information acquisition module 140, the speech use registration module 150, the device registration module 160, and the registration result transmission module 170 are implemented by the controller 11 executing programs for the respective functions stored in the storage 12.

Moreover, as illustrated in FIG. 3, the device 20 includes a message reception module 210, a command execution module 220, a device information transmission module 230, and a setting module 260. The message reception module 210, the command execution module 220, the device information transmission module 230, and the setting module 260 are implemented by the controller 21 executing programs for the respective functions stored in the storage 22.

Moreover, as illustrated in FIG. 3, the user terminal 60 includes a registration control module 610, a setting acquisition module 620, a phrase generation module 630, and a phrase output module 640. The registration control module 610, the setting acquisition module 620, the phrase generation module 630, and the phrase output module 640 are implemented by the controller 61 executing programs for the respective functions stored in the storage 62.

[2-1] First, description is made of the operation instruction reception module 110, the message generation module 120, the message transmission module 130, the message reception module 210, and the command execution module 220.

The operation instruction reception module 110 is configured to receive an operation instruction directed to the device 20. For example, the operation instruction reception module 110 receives an operation instruction from the speech recognition device 40. The operation instruction is converted by the speech recognition device 40 to data in a form, for example, text data, which is recognizable by a program.

When the operation reception module 110 receives the operation instruction directed to the device 20, the message generation module 120 generates a message containing a user ID and a command. The user ID identifies a user relating to the operation instruction. The command is data, for example, text, for causing an operation to be carried out in accordance with the operation instruction.

FIG. 4 is a diagram for illustrating an example of a message D1. The message D1 illustrated in FIG. 4 is an example of a message generated when an operation instruction to start up the first device 20-1 from the standby state is received.

The message D1 contains items of “uid”, “type”, “id”, and “command”. The item of “uid” is a user ID of a user who issues the operation instruction. In the example illustrated in FIG. 4, a user ID of “U1” is set to the item of “uid”. The item of “type” indicates a type of the data. In the example illustrated in FIG. 4, “cmd” is set to the item of “type”. This indicates that a command is contained in the message. The item of “id” indicates identification information for uniquely identifying the message. Data set to the item of “command” indicates content of the command. The item of “command” contains items of “ip”, “path”, and “method”. The item of “ip” indicates a destination of the command. In the example of FIG. 4, the IP address of the first device 20-1 is set to the item of “ip”. The item of “path” corresponds to a command body to be executed. The item of “method” indicates a method of the HTTP protocol to be used.

The message transmission module 130 is configured to transmit the message generated by the message generation module 120 to the device 20. When the device 20 subject to the operation instruction cannot receive the message through the Internal 6 (“0” is set to the “reception availability” field), the message transmission module 130 may transmit the message to another device 20, and then cause the another device 20 to transfer the message to the subject device 20.

The message is transmitted to the device 20 through the MQTT protocol. In other words, the message transmission module 130 transmits the message to the device 20 through the MQTT server 53. A plurality of topics exist in the MQTT server 53. Each of pieces of identification information on the topics is set based on the device IDs of the devices 20. At the time of the transmission from the command data transmission device 10 to the devices 20, the command data transmission device 10 publishes the message to atopic on a request side, which contains identification information corresponding to the device IDs, and the devices 20 receive the message published to the topic on the request side, which contains the identification information on the devices 20. The communication between the command processing system 50 and the devices 20 may be carried out through a protocol different from the MQTT protocol.

The message reception module 210 receives the message through the Internet 6. The command execution module 220 executes the command based on the command contained in the message. The execution module 220 may directly interpret the command contained in the message, to thereby directly control the device 20. Moreover, the command execution module 220 may include an internal execution module configured to execute a command received from the user terminal 60 or the like existing in the local area through the LAN 2, and a conversion module configured to convert a command contained in a received message and internally transmit the converted command to the internal execution module. For example, the device 20 may activate the HTTP daemon, and the internal execution module may receive the command from the conversion module through the HTTP protocol.

[2-2] Description is now made of an overview of the registration control module 610, the setting acquisition module 620, the phrase generation module 630, the phrase output module 640, the speech use registration module 150, the device registration module 160, the registration result transmission module 170, and the setting module 260.

The registration control module 610 is configured to enable the speech recognition device 40 to receive a phrase of at least one of the first type and the second type and transmit the operation instruction to the command processing system 50. More specifically, the registration control module 610 causes the speech recognition device 40 and the command processing system 50 to carry out processing of the use registration for this user. Moreover, the registration control module 610 registers the devices 20 subject to the instruction through the speech input to the command processing system 50, based on an operation by the user.

The setting acquisition module 620 is configured to detect the devices 20 connected to the local area, and acquire, from the detected devices 20, device information containing the names of the devices 20 used in the speech input for the devices 20. Moreover, the setting acquisition module 620 acquires, from the registration control module 610 or the command processing system 50, information indicating the types of phrases that the speech recognition device 40 can accept. The device information and the information indicating the types of phrases are hereinafter generally referred to as “user setting”. This is because the name of the device 20 used in the speech input and the available types of phrases are items that can be set by the user. When a plurality of devices 20 are detected by the setting acquisition module 620, for example, the registration control module 610 registers one or more devices 20 specified by the user out of the detected devices 20 as devices 20 subject to the instruction through the speech input.

The speech use registration module 150 receives from the registration control module 610 of the user terminal 60 a request (use registration request) to register the use of the command processing system 50 through the speech input by the user, and carries out processing of enabling the speech input by the user through cooperation of the command data transmission device 10 and the speech recognition device 40.

The device registration module 160 is configured to receive, from the registration control module 610 of the user terminal 60, a request (device registration request) to register a device 20 subject to the instruction through the speech input, to thereby register the device 20 as the subject to the speech input. The registration result transmission module 170 is configured to transmit a result (device registration result) of the registration of the device 20 and a template of sample phrases.

The setting module 260 is configured to receive a user ID registration instruction from the registration control module 610 of the user terminal 60, and write a user ID contained in the user ID registration instruction in the nonvolatile memory. Moreover, the setting module 260 is configured to receive a connection start instruction from the registration control module 610 of the user terminal 60, and connect to the MQTT server 53 included in the command processing system 50, to thereby enable reception from the command processing system 50.

The phrase generation module 630 is configured to generate a phrase capable of controlling a device 20 based on the user setting acquired by the setting acquisition module 620. The phrase output module 640 is configured to output data for displaying the generated phrase. As a result of the output of the data by the phrase output module 640, the generated phrase is displayed on a device visually recognizable by the user, for example, a display screen of the user terminal 60.

[2-3] Description is now made of the device information acquisition module 140 and the device information transmission module 230.

The device information acquisition module 140 is configured to acquire the device information on the device 20. The device information acquisition module 140 is configured to generate a message (hereinafter referred to as “device information request”) and a user ID, and transmit the message to the device 20 through the Internet 6. The device information request contains a command for causing a device 20 to transmit device information on the device to the device information acquisition module 140. More specifically, the device information acquisition module 140 transmits the device information request to the device 20 through the MQTT server 53. The generation and the transmission of the device information request may also be carried out by the message generation module 120 and the message transmission module 130.

When the device information request is received, the device information transmission module 230 returns the device information on the device 20 to the command data transmission device 10 through the Internet 6. The device information contains, for example, device type information on the device 20, the name used by a user to identify the device 20, the device ID, and the IP address. Moreover, the device information may contain current information indicating a current state of the device 20. The device information transmission module 230 transmits the device information to the command data transmission device through the MQTT server 53. The device information acquisition module 140 receives the device information. Then, the device information acquisition module 140 extracts required items out of the received device information, and registers those items in the device table T1.

[3. Processing] Description is now made of processing to be carried out by the device control system 1.

[3-1] First, description is made of processing of the use registration for the speech input. The processing of the use registration for the speech input contains processing of enabling the speech recognition device 40 to receive one or more types of phrase for a user and transmitting an operation instruction, and processing of registering information enabling the command processing system 50 to receive the operation instruction. This processing is required to be carried out before the user uses the command processing system 50 through the speech input.

Description is now made of an example of processing for the use registration for the first type of phrases. The second type of phrases may be registered through the same processing as that described below. FIG. 5 is a flowchart for illustrating an example of the processing of the use registration for the speech input. The processing of the speech use registration module 150 described below is carried out by the controller 11 executing a program corresponding to its function. The processing of the registration control module 610 is carried out by the controller 61 executing a program corresponding to its function.

First, when a user issues an instruction to start processing for the use registration, the registration control module 610 of the user terminal 60 transmits the use registration request to the command processing system 50 (Step S111). The speech use registration module 150 of the command data transmission device 10 receives the use registration request through the communication unit 13 (Step S121). The use registration request contains information indicating a speech recognition device 40 for receiving the speech input and a command processing system 50 for processing an operation instruction, which are directly or indirectly specified by the user. Moreover, the registration control module 610 transmits authentication information on the user (Step S112). The speech use registration module 150 receives the authentication information on the user through the communication unit 13 (Step S122). The authentication information transmitted from the user terminal 60 may be, for example, the user ID and a password. Moreover, when an authentication server other than the command processing system 50 exists, the registration control module 610 may transmit, as the authentication information, access permission information (type of token) acquired from the authentications server by inputting identification information on the user input by the user and the password to the authentication server. In this case, the registration control module 610 may use the access permission information to acquire the user ID from the authentication server. The user ID input in this case and the user ID used by the command processing system 50 and the device 20 may be different from each other. For example, the speech use registration module 150 may generate a hash value of the user ID contained in the authentication information as the user ID to be used in the subsequent processing.

When the authentication information is acquired, the speech use registration module 150 carries out such setting that the speech recognition device 40 receives speech input of the first type of phrase from the user, and such setting that the speech recognition device 40 transmits an operation instruction for the first type of phrase to the command processing system 50 (Step S123).

Then, the speech use registration module 150 stores a use registration state of the speech input in a database (Step S124). FIG. 6 is a table for showing an example of a speech input use table. The speech input use table contains fields of “user ID”, “registration for first type”, and “registration for second type”. The “user ID” serves as a key for uniquely identifying a record in the table. The “registration for first type” indicates whether the processing for the use registration for receiving the first type of phrase has been carried out for the user indicated by the “user ID” field. The “registration for second type” field indicates whether the processing for the use registration for receiving the second type of phrase has been carried out for the user indicated by the “user ID” field.

After the use registration state for the speech input is stored in the database, the speech use registration module 150 transmits a response indicating whether the use registration for the speech input is successful (Step S125). The registration control module 610 receives the use registration response (Step S113).

[3-2] Description is now made of the processing (registration processing) of registering, in the command processing system 50, the devices 20 subject to the instruction through the speech input based on the operation by the user. FIG. 7 is a sequence diagram for illustrating the processing of the device registration. FIG. 8 is a flowchart for illustrating an example of processing by the user terminal 60 in the device registration. FIG. 9 is a flowchart for illustrating an example of processing by the device 20 in the device registration. FIG. 10 is a flowchart for illustrating an example of processing by the command data transmission device 10 in the device registration.

Processing of the device registration module 160, the registration result transmission module 170, and the device information acquisition module 140 is carried out by the control module 11 executing programs corresponding to their functions. Processing of the registration control module 610, the setting acquisition module 620, the phrase generation module 630, and the phrase output module 640 is carried out by the control module 61 executing programs corresponding to their functions. Processing of the device information transmission module 230 and the setting module 260 is carried out by the control module 21 executing programs corresponding to their functions.

In the following, description is made of the registration processing to be carried out by the user terminal 60, the command data transmission device 10, and the device 20 in an order of the sequence diagram of FIG. 7.

First, when the registration control module 610 of the user terminal 60 acquires an instruction to start the device registration from the user, the registration control module 610 transmits a use registration confirmation request to the command processing system 50 through the communication module 63 (Step S211). More specifically, the use registration confirmation request is a request for inquiring whether one or more types of phrases are registered to use in the speech recognition device 40. Then, the device registration module 160 of the command data transmission device 10 receives the use registration confirmation request, and transmits a use registration confirmation response indicating the state of the use registration of the speech recognition (Step S251). More specifically, the device registration module 160 acquires a record stored in the speech input use table for the user who has instructed to start the device registration, and returns information indicating the types of phrases registered for use based on the values of the fields of the registration for the first type and the registration for the second type. The use registration confirmation response may include information indicating the user ID of the user who operates the user terminal 60. The registration control module 610 of the user terminal 60 receives the use registration confirmation response, and stores the information indicating the types of phrases registered for use and the like in the storage 62 (Step S212). When the use is not registered for any type of phrases to operate the device 20 for the user, an error message is transmitted as the use registration confirmation response, and the registration control module 610 outputs a screen for enabling the user to carry out the use registration.

When the setting acquisition module 620 receives the use registration confirmation response, the setting acquisition module 620 detects one or more devices 20 connected to the local area (LAN 2), and transmits device information requests to the detected one or more devices 20 (Step S213). The device information transmission module 230 of the device 20 receives the device information request, and transmits the device information to the user terminal 60 (Step S221). The device information contains the name of the device set by the user and the device ID. The setting acquisition module 620 of the user terminal 60 receives the transmitted device information (Step S214).

When the device information is received, the registration control module 610 transmits user ID registration instructions to the retrieved devices 20 (Step S215). The setting module 260 of the device 20 receives the user ID registration instruction (Step S222). The user ID registration instruction contains the user ID to be registered in the device 20. Moreover, when the user ID registration instruction is received, the setting module 260 writes the user ID in the nonvolatile memory (Step S223).

When the user ID is written, the registration control module 610 of the user terminal 60 transmits, to the retrieved devices, connection start instructions to connect to the MQTT server (Step S216). The setting module 260 of the device 20 receives the connection start instruction to connect to the MQTT server 53 (Step S224). Then, the setting module 260 connects to the MQTT server 53 (Step S225) so as to bring about a state in which an operation instruction can be received from the MQTT server 53.

When the devices 20 connect to the MQTT server 53, the registration control module 610 of the user terminal 60 transmits a device registration request to the command processing system 50 (command data transmission device 10) (Step S217). The device registration request contains the user ID and the device IDs of the devices 20 to be registered. The command data transmission device 10 receives the device registration request from the user terminal 60 (Step S252). The access permission information on the permission for the access to the authentication server may be contained in the device registration request in place of the user ID. In this case, the command data transmission device 10 may use the access permission information to acquire the user ID or information that is a source of the user ID from the authentication server.

Then, the device registration module 160 transmits a device information request to the devices 20 having the device IDs contained in the device registration request (Step S253). The device information transmission module 230 receives the device information request from the command processing system 50 (MQTT server 53), and transmits the device information to the command processing system 50 (Step S226). The device registration module 160 receives the device information (Step S254). The device information contains information indicating a command scheme, information on the input terminals of the device 20, information indicates other devices 20 connected to the input terminals, information on whether the device can receive messages through the Internet 6, and a list of commands that the device 20 can accept. The device registration module 160 stores, in the device table T1, at least a part (containing the device ID) of the received device information associated with the user ID (Step S255). The device registration module 160 may sort out and shape the information contained in the device information, and store the resulting information in the device table T1.

When the device registration module 160 has finished the processing up to Step S255, the registration result transmission module 170 selects templates of sample phrases based on the use registration state of the speech input, namely, the types of phrases that the speech recognition device 40 can receive for the user (Step S256). Moreover, the device registration module 160 transmits to the user terminal 60 a device registration result indicating whether each of the devices has been successfully registered and the selected templates of the sample phrases (Step S257).

FIG. 11 is a diagram for illustrating an example of the templates of the sample phrases. The sample phrase is a phrase capable of controlling the device 20 when the phrase is input by the user through the speech. FIG. 11 is an illustration of an example of a case in which phrases of the first type and the second type are registered for use. A first template TP1 contains a template of sample phrases of the first type. A second template TP2 contains a template of sample phrases of the second type. Content of the sample is a character string set to an item of “sentence”. The name of the device can be set by the user, and cannot thus be prepared in advance. Therefore, a temporary character string of “% s” is embedded in the content of the sample. A character string set to an item of “feature” indicates a command that the device 20 subject to the operation is required to have.

The phrase generation module 630 receives the result of the processing for the device registration request and the templates of the sample phrases from the command processing system 50 (command data transmission device 10) (Step S218). The phrase generation module 630 generates sample phrases based on the received templates, and the use registration state and the names of the devices, which are set by the user, and the phrase output module 640 outputs the generated sample phrases (Step S219).

More detailed description is now made of the processing by the phrase generation module 630 and the phrase output module 640. FIG. 12 is a flowchart for illustrating an example of the processing by the phrase generation module 630 and the phrase output module 640.

First, the phrase generation module 630 selects a device 20 capable of executing commands required by sample phrases, and acquires the name of the selected device 20 (Step S311). The phrase generation module 630 collects, for example, commands set to the item of “feature” of the template, selects a record having all the collected commands in the field of the acceptable commands from records of a certain user stored in the device table T1, and acquires the name of a device contained in the record.

Then, the phrase generation module 630 carries out processing in accordance with the user setting (information indicating the types of phrases registered for use and the name of the device). More specifically, the following processing is carried out. First, the phrase generation module 630 determines whether the information indicating the types of phrases registered for use indicates a state in which the first type of phrases can be accepted (Step S312). When the information indicates the state in which the first type of phrase can be accepted (Y in Step S312), the phrase generation module 630 replaces the portion of the device name out of the wording of the first template TP1 by the name of the selected device, to thereby generate sample phrases (Step S313). Then, the phrase output module 640 outputs data on the generated sample phrases so that the sample phrases are displayed on the screen of the user terminal 60 (Step S314). In this case, when the information indicating the types of phrases registered for use does not indicate the state in which the first type of phrase can be accepted (N in Step S312), the processing in Step S313 and Step S314 is skipped.

FIG. 13 is a diagram for illustrating an example of the displayed sample phrases. The example of FIG. 13 is an example of a screen displayed based on the first template TP1 when the first type of phrase is set to be acceptable. A device 20 having the name of “Living Room” can process a command for a volume operation, and corresponding phrases are thus output as the sample phrases.

Then, the phrase generation module 630 determines whether the information indicating the types of phrases registered for use indicates that the second type of phrase can be accepted (Step S315). When the information indicates the state in which the second type of phrase can be accepted (Y in Step S315), the phrase generation module 630 replaces the portion of the device name out of the wording of the second template TP2 by the name of the selected device, to thereby generate sample phrases (Step S315). Then, the phrase output module 640 outputs data on the generated sample phrases so that the sample phrases are displayed on the screen of the user terminal 60 (Step S317). In this case, when the information indicating the types of phrases registered for use does not indicate the state in which the second type of phrase can be accepted (N in Step S315), the processing in Step S316 and Step S317 is skipped.

FIG. 14 is a diagram for illustrating another example of the displayed sample phrases. The example of FIG. 14 is an example of a screen displayed based on the second template TP2 when the second type of phrase is set to be acceptable.

In such a manner, the user can easily and reliably acquire the sample phrases acceptable in the speech input through dynamic control of the sample phrases displayed as the input example of the command. Moreover, even when the acceptable phrases change in accordance with the user, the user need not replace the content of the sample phrase by using the user setting to generate sample phrases. Thus the user can thus easily recognize acceptable and valid sample phrases.

[3-3] Description is now made of processing by the command processing system 50 of receiving an operation instruction and controlling the device 20. FIG. 15 is a flowchart for illustrating an example of processing by the operation instruction reception module 110, the message generation module 120, the message transmission module 130, the message reception module 210, and the command execution module 220. The processing of the operation instruction reception module 110, the message generation module 120, and the message transmission module 130 described below is carried out by the controller 11 executing programs corresponding to their functions. The processing of the message reception module 210 and the command execution module 220 is carried out by the controller 21 executing programs corresponding to their functions.

First, the operation instruction reception module 110 acquires an operation instruction from the speech recognition device 40 (Step S511). Then, the message generation module 120 acquires the user ID of a user subject to the operation instruction based on the acquired operation instruction, and acquires the device ID of a device 20 that is associated with the user ID and is subject to the operation instruction, based on the name of the device contained in the operation instruction and the device table T1 (Step S512). Then, the message generation module 120 generates a message containing a command corresponding to the operation instruction and the acquired user ID (Step S513). The message transmission module 130 transmits the generated message to the device 20 subject to the operation instruction (Step S514).

The message reception module 210 of the device 20 subject to the operation instruction receives the message (Step S521). Then, the message reception module 210 compares the user ID contained in the message and the user ID written in the nonvolatile memory of the device 20 with each other (Step S522). When those user IDs are the same (Y in Step S522), the command execution module 220 executes the command contained in the message (Step S523). On the other hand, when those user IDs are different from each other (N in Step S522), the message is discarded, and the command contained in the message is not executed.

As described above, the message reception module 210 controls whether the command is to be executed in accordance with the comparison result of the user IDs. As a result, an unexpected operation of the device 20 can be prevented. In particular, in a related-art case, in a case where the device 20 is handed over to other user, but the device registration is not reset on the command processing system 50 side, when a user who has handed over the device 20 inputs a command directed to the device 20 through speech by mistake, the device 20 may function by mistake through the command. In contrast, in this embodiment, when the user to whom the device is handed over has registered the device, irrespective of a command input by the user who has handed over the device, a message containing the command is discarded on the device 20 side, and the possibility of an unexpected operation can thus be suppressed.

[Supplementary Notes]

As can be understood from the above description of the embodiment, in the present application, a variety of technical ideas including embodiments of the invention described below are disclosed.

According to one embodiment of the present invention, there is provided a device control system including: a device, which has a device ID for identifying the device, and is configured to write a user ID for identifying a user in a memory based on an instruction to register the user ID; and a server configured to transmit a message containing the user ID and a command to the device having the device ID. When the user ID contained in the message and the written user ID are different from each other, the device avoids executing the command contained in the message.

According to one embodiment of the present invention, there is provided a device, which has a device ID for identifying the device, and is configured to: write a user ID for identifying a user in a memory based on an instruction to register the user ID; receive a message containing the user ID and a command; and avoid executing the command contained in the message when the user ID contained in the message and the written user ID are different from each other.

According to one embodiment of the present invention, there is provided a program for causing a computer to function as: setting means, which has a device ID for identifying the setting means, for writing a user ID for identifying a user in a memory based on an instruction to register the user ID; and reception means for receiving a message containing the user ID and a command, and avoiding executing the command contained in the message when the user ID contained in the message and the written user ID are different from each other.

According to one embodiment of the present invention, there is provided a device control method for a system including a device having a device ID for identifying the device and a server, the device control method including: writing, by the device, a user ID for identifying a user in a memory based on an instruction to register the user ID; transmitting, by the server, a message containing the user ID and a command to the device having the device ID; receiving, by the device, the message, and comparing the user ID contained in the message and the written user ID; and determining, by the device, whether the command contained in the message is executable in accordance with a result of the comparison.

In the one embodiment of the present invention, when the user ID contained in the message and the written user ID are determined to be different from each other in the comparison, the device may avoid executing the command contained in the message.

In the one embodiment of the present invention, when the server receives an operation instruction directed to the device, the server may generate a message containing a user ID for identifying a user who has transmitted the operation instruction.

In the one embodiment of the present invention, when the user ID contained in the message and the written user ID are determined to be the same in the comparison, the device may execute the command contained in the message.

In the one embodiment of the present invention, the device control system may further include a control device configured to transmit the instruction to register the user ID to the device. The control device may be configured to transmit the device ID of the device to the server. The server may be configured to store the device ID and the user ID associated with each other. When the server acquires from the user an operation instruction directed to the device, the server may transmit, based on the acquired operation instruction, a message containing the user ID of the user having issued the instruction and the command, to the device having the device ID associated with the user ID.

While there have been described what are at present considered to be certain embodiments of the invention, it will be understood that various modifications may be made thereto, and it is intended that the appended claims coverall such modifications as fall within the true spirit and scope of the invention. 

What is claimed is:
 1. A device control system, comprising: a device, which has a device ID for identifying the device, and is configured to write a user ID for identifying a user in a memory based on an instruction to register the user ID; and a server configured to transmit a message containing the user ID and a command to the device having the device ID, wherein the device is configured to: receive the message, and compare the user ID contained in the message and the written user ID; and determine whether the command contained in the message is executable in accordance with a result of the comparison.
 2. The device control system according to claim 1, wherein when the user ID contained in the message and the written user ID are determined to be different from each other in the comparison, the device avoids executing the command contained in the message.
 3. The device control system according to claim 1, wherein when the server receives an operation instruction directed to the device, the server generates a message containing a user ID for identifying a user who has transmitted the operation instruction.
 4. The device control system according to claim 1, wherein when the user ID contained in the message and the written user ID are determined to be the same in the comparison, the device executes the command contained in the message.
 5. The device control system according to claim 1, further comprising a control device configured to transmit the instruction to register the user ID to the device, wherein the control device is configured to transmit the device ID of the device to the server, wherein the server is configured to store the device ID and the user ID associated with each other, and wherein when the server acquires from the user an operation instruction directed to the device, the server transmits, based on the acquired operation instruction, a message containing the user ID of the user having issued the instruction and the command, to the device having the device ID associated with the user ID.
 6. A device, which has a device ID for identifying the device, and is configured to: write a user ID for identifying a user in a memory based on an instruction to register the user ID; receive a message containing the user ID and a command, and compare the user ID contained in the message and the written user ID; and determine whether the command contained in the message is executable in accordance with a result of the comparison.
 7. A computer-readable non-transitory storage medium for storing a program that causes a device which has a device ID for identifying the device to execute processing of: writing a user ID for identifying a user in a memory based on an instruction to register the user ID; and receiving a message containing the user ID and a command, comparing the user ID contained in the message and the written user ID, and determining whether the command contained in the message is executable in accordance with a result of the comparison. 